/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2018-2018. All rights reserved.
 * Description: Huawei safe print function define
 *
 * Huawei(R) HiNIC PCI Express Network Controller UEFI Driver.
 * This driver is only usable in the EFI Pre-boot execution environment.
 * All rights reserved.
 * Author	 :
 * Create	 : 2018/12/10
 */
#ifndef HW_SAFE_OP_INTERNAL_H
#define HW_SAFE_OP_INTERNAL_H
#ifdef EDK_SUPPORT
#include "EdkIIGlueBase.h"
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#endif
#ifdef EDKII_SUPPORT
#include <Uefi.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/PrintLib.h>
#endif

// define the max length of string for safe string function
#define EFI_SECUREC_ASCII_STRING_MAX_LEN   0x7fffffffUL
#define EFI_SECUREC_UNICODE_STRING_MAX_LEN 0x3fffffffUL

// define the max length of memory for memcpy and memmove
#define EFI_SECUREC_MEM_MAX_LEN            0x7fffffffUL

#endif

